/**
 * @description
 */


package com.yjx.crm.service;

import com.yjx.crm.base.BaseService;
import com.yjx.crm.dao.PermissionMapper;
import com.yjx.crm.vo.Permission;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class PermissionService extends BaseService<Permission,Integer> {
    @Resource
    private PermissionMapper permissionMapper;


    /*通过当前登录用户ID查询当前登录用户拥有的资源列表*/
    public List<String> queryUserHasRoleHasPermissionByUserId(Integer userId) {
        return permissionMapper.queryUserHasRoleHasPermissionByUserId(userId);
    }
}
